//
//  main.m
//  类工厂方法在继承中的注意点
//
//  Created by wenjim on 17/9/19.
//  Copyright © 2017年 WenJim. All rights reserved.
//

#import <Foundation/Foundation.h>

#import "Student.h"

int main(int argc, const char * argv[]) {
    /*
    Student * stu = [Student person];
    
    stu.age = 32;
    
    stu.no = 2;
    
    NSLog(@"age = %i, no = %i",stu.age,stu.no);
    
    Person * p =  [Person person];
    */
    
    Student * stu = [Student personWithAge:23];
    stu.no = 9;
    
    return 0;
}
